# python
# -*- encoding: utf-8 -*-
"""
@File    :   P5_read_data.py    
@Contact :   chaihaolong@foxmail.com

@Modify Time      @Author    @Version    @Description
------------      -------    --------    -----------
2024/7/8 16:08   CHL      0.1         None
"""
from torch.utils.data import Dataset

if __name__ == '__main__':
    help(Dataset)
    """
    class Dataset(typing.Generic)
     |  Dataset(*args, **kwds)
     |  
     |  An abstract class representing a :class:`Dataset`.
     |  
     |  All datasets that represent a map from keys to data samples should subclass
     |  it. All subclasses should overwrite :meth:`__getitem__`, supporting fetching a
     |  data sample for a given key. Subclasses could also optionally overwrite
     |  :meth:`__len__`, which is expected to return the size of the dataset by many
     |  :class:`~torch.utils.data.Sampler` implementations and the default options
     |  of :class:`~torch.utils.data.DataLoader`.
     |  
     |  .. note::
     |    :class:`~torch.utils.data.DataLoader` by default constructs a index
     |    sampler that yields integral indices.  To make it work with a map-style
     |    dataset with non-integral indices/keys, a custom sampler must be provided.
     |  
     |  Method resolution order:
     |      Dataset
     |      typing.Generic
     |      builtins.object
     |  
     |  Methods defined here:
     |  
     |  __add__(self, other: 'Dataset[T_co]') -> 'ConcatDataset[T_co]'
     |  
     |  __getitem__(self, index) -> +T_co
     |  
     |  ----------------------------------------------------------------------
     |  Data descriptors defined here:
     |  
     |  __dict__
     |      dictionary for instance variables (if defined)
     |  
     |  __weakref__
     |      list of weak references to the object (if defined)
     |  
     |  ----------------------------------------------------------------------
     |  Data and other attributes defined here:
     |  
     |  __orig_bases__ = (typing.Generic[+T_co],)
     |  
     |  __parameters__ = (+T_co,)
     |  
     |  ----------------------------------------------------------------------
     |  Class methods inherited from typing.Generic:
     |  
     |  __class_getitem__(params) from builtins.type
     |  
     |  __init_subclass__(*args, **kwargs) from builtins.type
     |      This method is called when a class is subclassed.
     |      
     |      The default implementation does nothing. It may be
     |      overridden to extend subclasses.
     |  
     |  ----------------------------------------------------------------------
     |  Static methods inherited from typing.Generic:
     |  
     |  __new__(cls, *args, **kwds)
     |      Create and return a new object.  See help(type) for accurate signature.

    """
